<?php
include_once('class/autoload.php');
session_start();
$site = new page_base_securisee('EcoleAttente');
$site->titre = "Ecole en attente";

$site->corps ='';
		
	require 'connect.php';

$query = dbConnect()->prepare('select * from ecole where affiliationEcole = 0');
$query->execute();

echo 'Ecole en attente: ';
while($row = $query->fetch())
{
	echo '<br>  Nom : '.$row['nomEcole'],' | Ville :  '.$row['villeEcole'],' | Telephone : ',$row['telEcole'];

}

$site->affiche();

?>